package com.wxs.service;

public class UserServicePoxy implements UserService{

    private UserServiceImp userServiceImp;

    public UserServicePoxy(UserServiceImp userServiceImp) {
        this.userServiceImp = userServiceImp;
    }

    public void setUserServiceImp(UserServiceImp userServiceImp) {
        this.userServiceImp = userServiceImp;
    }

    public void addUser() {
        log("add");
        userServiceImp.addUser();
    }

    public void deleteUser() {
        log("delete");
        userServiceImp.deleteUser();
    }

    public void updateUser() {
        log("update");
        userServiceImp.updateUser();
    }

    public void queryUser() {
        log("query");
        userServiceImp.queryUser();
    }

    public void log(String msg){
        System.out.println("[Debug] " + msg );
    }
}
